FROM openjdk:8-jre
MAINTAINER wangxiang

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone

ADD ./target/geovis-emergency-spd-server.jar ./app.jar

ENTRYPOINT ["java", "-Xmx512m", "-Djava.security.egd=file:/dev/./urandom","-Dtyphoon.path=/home/resource","-Dspring.datasource.url=jdbc:p6spy:postgresql://192.168.1.56:5432/ge_spd","-Dspring.redis.host=192.168.1.56","-Ddruid.mysql.usePingMethod=false", "-jar", "/app.jar"]
CMD ["--spring.profiles.active=dev"]
